﻿
namespace TermEquation
{
    public class TestTask2 : ITask
    {
        public const double mu1 = 1;
        public const double mu2 = 2;

        public double a(int i, double h)
        {
            return 1;
        }

        public double d(int i, double h)
        {
            return 0;
        }

        public double fi(int i, double h)
        {
            return 2;
        }

        public double GetSolution(double x)
        {
            return -x * x + 2 * x + 1;
        }
    }
}